<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : top.jsp
    Description : 관리자 top 부분
    author Seung Hun
    since 2012. 7. 11.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 7. 11.     Seung Hun     최초 생성
--%>

    <!-- accNav -->
    <div id="accNav"><a href="#container">skip to contents</a></div>
    <!-- /accNav -->

    <!-- header -->
    <div id="header">
        <h1><a href="/gn_100_02.do"><img src="/img/mng/common/hyundai.gif" alt="HYUNDAI &#124; NEW THINKING, NEW POSSIBLITIES" /></a></h1>
        <div class="user">
        <c:if test="${mngSession.mbrNm != null }">
            <p class="name"><strong>${mngSession.mbrNm }</strong>&nbsp;님 입장하셨습니다.</p>
            <a href="/gn_100_05.do" class="btnLog">로그아웃</a>
        </c:if>
        </div>
        <div id="gnb">
            <ul>
<c:choose>
    <c:when test="${mgrDept1Menu != null && !empty mgrDept1Menu }">
        <c:forEach var="gnbMenu" items="${mgrDept1Menu }" varStatus="status">
            <c:if test="${fn:substring(ABLE_SPRING_CURRENT_URI,1,3) == fn:substring(gnbMenu.lnkUrl,0,2) }">
                <c:set var="dept1MenuCode" value="${fn:substring(gnbMenu.lnkUrl,0,2) }" />
                <c:set var="dept1MenuTitl" value="${gnbMenu.titl }" />
                <c:set var="dept1MenuUrl" value="${gnbMenu.lnkUrl }" />
                <c:set var="gnbClassTitl" value="class='atv'" />
            </c:if>
            <c:if test="${gnbMenu.dept1Cd == 'N' }">
                <li ${gnbClassTitl }><a href="#" onclick="alert('사용 권한이 없습니다.');return false;">${gnbMenu.titl }</a></li>
            </c:if>
            <c:if test="${gnbMenu.dept1Cd == 'Y' }">
                <li ${gnbClassTitl }><a href="${gnbMenu.lnkUrl }.do">${gnbMenu.titl }</a></li>
            </c:if>
            <c:remove var="gnbClassTitl" />
        </c:forEach>
    </c:when>
</c:choose>
            </ul>
        </div>
    </div>
    <!-- /header -->
